package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 紧急事件类型对象 emergency_type
 * 
 * @author ruoyi
 * @date 2021-06-30
 */
public class EmergencyType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Long etId;

    /** 名称 */
    @Excel(name = "名称")
    private String etName;

    /** 父类id */
    @Excel(name = "父类id")
    private Long etParent;
    private List<EmergencyType> emergencyTypeList;

    public List<EmergencyType> getEmergencyTypeList() {
        return emergencyTypeList;
    }

    public void setEmergencyTypeList(List<EmergencyType> emergencyTypeList) {
        this.emergencyTypeList = emergencyTypeList;
    }

    public void setEtId(Long etId)
    {
        this.etId = etId;
    }

    public Long getEtId() 
    {
        return etId;
    }
    public void setEtName(String etName) 
    {
        this.etName = etName;
    }

    public String getEtName() 
    {
        return etName;
    }
    public void setEtParent(Long etParent) 
    {
        this.etParent = etParent;
    }

    public Long getEtParent() 
    {
        return etParent;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("etId", getEtId())
            .append("etName", getEtName())
            .append("etParent", getEtParent())
            .toString();
    }
}
